@echo off
rem Set the source directory to the directory where the script is located.
set "SOURCE_DIR=%~dp0"
rem Remove the trailing backslash from the source directory path.
set "SOURCE_DIR=%SOURCE_DIR:~0,-1%"

rem Set the path of the gogs_backup.py script.
set "PYTHON_SCRIPT_PATH=%SOURCE_DIR%\gogs_backup.py"

rem Run the Python script.
python "%PYTHON_SCRIPT_PATH%" --gogs-url http://127.0.0.1:3000/ --token 3918dabde24c25af8b834fb0ba8eb7753f3ed405 --source-dir "%SOURCE_DIR%"

rem Pause the script for 6 seconds.

rem python3 gogs_backup.py --gogs-url http://127.0.0.1:3000/ --token 3918dabde24c25af8b834fb0ba8eb7753f3ed405 --source-dir /home/eyyhappy/esp32_halow/voyager2/esp32
rem python gogs_backup.py --gogs-url http://127.0.0.1:3000/ --token 3918dabde24c25af8b834fb0ba8eb7753f3ed405 --source-dir C:\work\AllRepo\3.wifi_halow\wifi_halow_sdk7\wifi_halow_sdk


timeout 6